Developer Documentation
PATH  WebObjects 4.0 Documentation > WebObjects Tools and Techniques

Table of Contents Previous Section

Generic WebObjects

You can use the generic WebObject element to create a dynamic version of any HTML element.

To create a dynamic version of a standard HTML element:

  1. Create the element (say, a heading).

  2. In the Inspector, click Make Dynamic.

    If the element has no specific dynamic counterpart, it becomes a generic WebObject element.

To create a generic WebObject corresponding to any HTML element (even ones not supported directly by WebObjects Builder):

  1. Click in the toolbar.

  2. Bring up the Inspector.

    A generic WebObject element has one required attribute, elementName, which specifies what type of element should be generated at run time.

    For example, imagine that a future version of HTML adds a new container element, which you would like to generate dynamically in your component. You would:

  3. Type container name between the quotes in the Binding column.

  4. Check "Element is container".

  5. Use the Add Attribute button to specify any additional properties of the element.

Table of Contents Next Section